package com.iflytek.dao;

import com.iflytek.domain.Hero;
import com.iflytek.domain.Role;

import java.util.List;

public interface HeroMapper {

    List<Hero> queryAllheroes ();
    //根据ID查询Role对象
    public abstract Role queryRoleById(int id);
    //新增一个Role
    public abstract void addRole(Role role);
    //根据Id删除Role对象
    void deleteRoleById(int id);
    //根据Id修改一个Role对象
    public abstract void updateRoleId(Role role);
}
